var debug = false;

function FindProxyForURL(url, host)
{
	if (debug) {
		alert("Local IP address is: " + myIpAddress()); 
	}
	if (isInNet(host, "192.168.0.0", "255.255.0.0")||localHostOrDomainIs(host, "*.cmszmail.ad")||
		isInNet(host, "10.0.0.0", "255.0.0.0")||
		isInNet(host, "127.0.0.0", "255.0.0.0")||
		isInNet(host, "132.32.50.0", "255.255.255.0")||
		isInNet(host, "172.16.0.0", "255.240.0.0")||
		isInNet(host, "132.32.19.20", "255.255.255.255")||
		isInNet(host, "132.32.19.97", "255.255.255.255")||
		isInNet(host, "132.32.20.0", "255.255.255.0")||
		isInNet(host, "218.206.191.182", "255.255.255.255")||
		isInNet(host, "121.15.170.98", "255.255.255.255")||
		isInNet(host, "203.90.241.199", "255.255.255.255")||
		isInNet(host, "117.136.129.32", "255.255.255.255")||
		isInNet(host, "202.104.121.11", "255.255.255.255")||
		isInNet(host, "100.127.0.2", "255.255.255.255")||
		isInNet(host, "100.127.0.6", "255.255.255.255")||
		shExpMatch(host, "*.bili*.com") || shExpMatch(host, "*.hdslb.com") || shExpMatch(host, "*.microsoft.com")
		) {
		
		if (debug) {
			alert("request host is :" + host + ", return DIRECT");
		}
		return DIRECT;
	}
	else {
		if (debug) {
			alert("request " + host + " user PROXY 192.168.105.71:8083")
		}
		return "PROXY 192.168.105.71:8083";
	}
}